package com.dongdong.service.impl;

import com.dongdong.mapper.TbSpecificationOptionMapper;
import com.dongdong.pojo.TbSpecificationOption;
import com.dongdong.pojo.TbSpecificationOptionExample;
import com.dongdong.service.TbSpecificationOptionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
@com.alibaba.dubbo.config.annotation.Service
public class TbSpecificationOptionServiceImpl implements TbSpecificationOptionService {



    @Autowired
    private TbSpecificationOptionMapper tbSpecificationOptionMapper;


    @Override
    public List<TbSpecificationOption> selectOptionsBySpecId(Long id) {
        TbSpecificationOptionExample example = new TbSpecificationOptionExample();
        TbSpecificationOptionExample.Criteria criteria = example.createCriteria();
        criteria.andSpecIdEqualTo(id);
        List<TbSpecificationOption> optionList = tbSpecificationOptionMapper.selectByExample(example);
        return optionList;
    }
}
